#!/bin/bash
cd /opt/tools/redis-sentinel/redis-master/bin
./redis-server ../redis-6379.conf
cd /opt/tools/redis-sentinel/redis-slave1/bin
./redis-server ../redis-6380.conf
cd /opt/tools/redis-sentinel/redis-slave2/bin
./redis-server ../redis-6381.conf

cd /opt/tools/redis-sentinel/redis-master/bin
./redis-sentinel ../sentinel-26379.conf
cd /opt/tools/redis-sentinel/redis-slave1/bin
./redis-sentinel ../sentinel-26380.conf
cd /opt/tools/redis-sentinel/redis-slave2/bin
./redis-sentinel ../sentinel-26381.conf

